package com.bblocks.message.api.user;

import cn.jiguang.common.resp.BaseResult;
import com.google.gson.annotations.Expose;

import java.util.ArrayList;
import java.util.List;

public class UserStateListResult extends BaseResult {

	private static final long serialVersionUID = 1L;
	
	@Expose List<Device> devices = new ArrayList<Device>();
	
    @Expose String username;

    public String getUsername() {
        return this.username;
    }

    public List<Device> getDevices(){
    	return devices;
    }

    public class Device {
        @Expose boolean login;
        @Expose boolean online;
        @Expose String platform;

        public boolean getLogin() {
            return this.login;
        }

        public boolean getOnline() {
            return this.online;
        }

        public String getPlatform() {
            return this.platform;
        }
    }
}
